import React,{useEffect} from 'react'

import Head from '../Head/Head'
import Content from '../Content/Content'
import Footer from '../Footer/Footer'
import './Cart.css'

export default function Cart(props) {
  const {title,list,setGoodState,changeAll}=props

  useEffect(() => {
    
  }, [list]);

  return (
    <div className='container-cart'>
      <Head title={title}></Head>
      <Content list={list} setGoodState={setGoodState}></Content>
      <Footer list={list} changeAll={changeAll}></Footer>
    </div>
  )
}
